export default function({ store, redirect }) {
  if (!store.state.user || !store.state.user.email) {
    redirect('/admin/login')
  }
}